package com.oschat.entity.constants;

import com.oschat.entity.enums.UserContactTypeEnum;

/**
 * @Description 常量类
 * @Classname Constants
 * @Date 2024/10/31 11:47
 * @Created by panda
 */
public class Constants {
    public static final Integer REDIS_TIME_1MIN = 60;//单位：s

    public static final Integer REDIS_KEY_EXPIRES_DAY = 86400;//单位：s

    public static final Integer REDIS_TIME_2 = 2;

    public static final Integer LENGTH_11 = 11;

    public static final Integer LENGTH_20 = 20;

    public static final String REDIS_KEY_CHECK_CODE = "oschat:checkcode:";

    public static final String REDIS_KEY_WS_USER_HEART_BEAT = "oschat:ws:user:heartbeat";

    public static final String REDIS_KEY_WS_TOKEN = "oschat:ws:token:";

    public static final String REDIS_KEY_WS_TOKEN_USER = "oschat:ws:token:userid";

    public static final String ROBOT_UID = UserContactTypeEnum.USER.getPrefix() + "robot";

    public static final String REDIS_KEY_SYS_SETTING = "oschat:syssetting:";

    public static final String FILE_FOLDER_FILE = "/file/";

    public static final String FILE_FOLDER_AVATAR_NAME = "avatar/";

    public static final String IMAGE_SUFFIX = ".png";

    public static final String COVER_IMAGE_SUFFIX="_cover.png";

    public static final String APPLY_INFO_TEMPLATE="我是%s";

    //正则
    public static final String REGEX_PASSWORD = "^(?=.*\\d)(?=.*[a-zA-Z])[\\da-zA-Z~!@#$%^&*_]{8,18}$";

    public static final String APP_UPDATE_FOLDER="/app/";

    public static final String APP_EXE_SUFFIX=".exe";

    public static final String APP_NAME="OpenSourceChatSetup.";
}
